package com.fp.m7.shared.dto;

import java.io.Serializable;

/**
 * DTO holding account data. Contains a user DTO.
 * 
 * @author 7
 */
public class AccountDto extends BaseDto {
    private static final long serialVersionUID = -1402703012503431995L;

    private String description;
    private String status;
    private UserDto userDto;

    private Integer followersCount;
    private Integer followingCount;

    public AccountDto() {
    }

    public AccountDto(Serializable id, String description, String status, UserDto userDto) {
        this.id = id;
        this.description = description;
        this.status = status;
        this.userDto = userDto;
    }

    public AccountDto(Long id, String description, String status, UserDto userDto, Integer followersCount,
            Integer followingCount) {
        this.id = id;
        this.description = description;
        this.status = status;
        this.userDto = userDto;
        this.followersCount = followersCount;
        this.followingCount = followingCount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public UserDto getUserDto() {
        return userDto;
    }

    public void setUserDto(UserDto userDto) {
        this.userDto = userDto;
    }

    public Integer getFollowersCount() {
        return followersCount;
    }

    public void setFollowersCount(Integer followersCount) {
        this.followersCount = followersCount;
    }

    public Integer getFollowingCount() {
        return followingCount;
    }

    public void setFollowingCount(Integer followingCount) {
        this.followingCount = followingCount;
    }

    @Override
    public String toString() {
        return new StringBuilder("AccountDto [id=").append(id) //
                .append("; description=").append(description) //
                .append("; status=").append(status) //
                .append("; user=").append(userDto) //
                .append("]").toString();
    }
}
